import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("fa_version",{schema:"fastadmin" } )
export class fa_version {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("varchar",{ 
        nullable:false,
        length:30,
        name:"oldversion"
        })
    oldversion:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:30,
        name:"newversion"
        })
    newversion:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:30,
        name:"packagesize"
        })
    packagesize:string;
        

    @Column("varchar",{ 
        nullable:false,
        length:500,
        name:"content"
        })
    content:string;
        

    @Column("varchar",{ 
        nullable:false,
        name:"downloadurl"
        })
    downloadurl:string;
        

    @Column("tinyint",{ 
        nullable:false,
        default: () => "'0'",
        name:"enforce"
        })
    enforce:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"createtime"
        })
    createtime:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"updatetime"
        })
    updatetime:number;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"weigh"
        })
    weigh:number;
        

    @Column("varchar",{ 
        nullable:false,
        length:30,
        name:"status"
        })
    status:string;
        
}
